import { Module } from '@nestjs/common';
import { UploadController } from './upload.controller';
import { UploadService } from './upload.service';
import { MulterModule } from '@nestjs/platform-express';

@Module({
  imports:[MulterModule.registerAsync({
    useFactory: async () => ({
      dest: './public'
    })
  })],
  controllers: [UploadController],
  providers: [UploadService]
})
export class UploadModule {}
